Page({
  data: {
    loadding: false,
    show: false,
    bottom: 0,
    myUserId: 2,
    chatList: [
      {
        type: 1, //1-文字 2-图片 3-语音，4-时间 5-提醒 ...
        userId: 1, //用户标识 不一定是userid
        text: '',
        src: '',
        read: false,
        success: false
      }
    ]
  },
  onPageScroll(e) {
		if (e.scrollTop == 0 && !this.data.loadding) {
      this.setData({
        loadding: true
      }, () => {
        setTimeout(() => {
          this.setData({
            show: true,
            loadding: false
          })
        }, 1000)
      })
    }
	}
})